# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class md5model(models.Model):
    nodeip = models.CharField('IP', max_length=100)
    filename = models.CharField('文件名', max_length=100)
    md5value =  models.CharField('md5值', max_length=100)

    def __unicode__(self):
        return self.filename

    class Meta:
        ordering = ['filename']  # 按照哪个栏目排序
        unique_together = ("nodeip", "filename")